<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>分页组件</title>
    <link rel="stylesheet" type="text/css" href="https://www.layuicdn.com/layui/css/layui.css" />
    <script src="https://www.layuicdn.com/layui/layui.js"></script>
</head>
<body>
    <div id="test1"></div>
    <script>
        layui.use("laypage", function () {
           var laypage = layui.laypage;

           laypage.render({
               elem: "test1",
               count: 100,
               limit: 5,
               layout: ['prev', 'page', 'next', 'limit', 'skip', 'count', 'refresh'],
               groups: 2,
           });
        });
    </script>
</body>
</html>